import React, { Suspense } from 'react'
import routes from './routes'
import { BrowserRouter, useRoutes } from "react-router-dom"
const Index: React.FC = () => {
	const Router = () => useRoutes(routes)
	return (
		<Suspense>
			<BrowserRouter>
				<Router></Router>
			</BrowserRouter>
		</Suspense>
	)
}

export default Index